import ContactCoach from "../../../pages/requests/ContactCoach.vue";

export default{
    ContactCoach(context,payload){
        const newRequest = {
            //创建一个临时的虚拟ID
            id: new Date().toISOString(),
            coachId:payload.coachId,
            userEmail:payload.email,
            message:payload.message
        };
        context.commit('addRequest',newRequest);
    }
};